void main() {
  // 创建男人对象
  Man man = Man('李雷', 13);
  print(man.name);
  man.eat();

  // 创建女人对象
  Woman woman = Woman('韩梅梅', 14);
  print(woman.name);
  woman.eat();
}

/// 男人类
class Man {
  Man(this.name, this.age);

  String? name;
  int? age;

  void eat() {
    print('$name -- eat');
  }
}

/// 女人类
class Woman {
  Woman(this.name, this.age);

  String? name;
  int? age;

  void eat() {
    print('$name -- eat');
  }
}
